<?php

    class DbFactory{
        private static $db;
        
        private static $db_type = "sqlite";
        private static $db_file_name = "site.db";

        public static function get_instance(){
            if(!self::$db){
                self::$db = new PDO(self::$db_type.":".self::$db_file_name);
            }
            return self::$db;
        }
    }
?>
